Document structure/ko

FreeCAD 문서는 작업 중인 장면(scene)에 포함된 모든 객체를 담고 있습니다. 이 문서에는 그룹과 작업대(Workbench)에서 만들어진 객체들을 포함하고 있습니다. 따라서 작업대(Workbench)를 전환하더라도 같은 문서에서 계속 작업할 수 있습니다. 이 문서는 작업을 저장할 때 디스크에 저장되는 대상입니다. 또한 FreeCAD에서는 여러 문서를 동시에 열 수 있으며, 하나의 문서에 대해 여러 개의 뷰(view)를 여는 것도 가능합니다.

문서 내부에서 객체들은 그룹으로 이동할 수 있으며, 각각 고유한 이름을 가집니다. 그룹, 객체, 그리고 객체 이름의 관리는 주로 트리 뷰에서 이루어집니다.참고: 물론 FreeCAD의 다른 모든 기능과 마찬가지로, 이러한 작업은 파이썬(Python) 인터프리터를 통해서도 수행할 수 있습니다.

트리 뷰에서는 그룹 생성, 객체를 그룹으로 이동, 트리 뷰 또는 객체 위에서 마우스 오른쪽 버튼을 클릭하여 객체나 그룹 삭제, 객체 이름을 이름을 더블 클릭하여 변경과 같은 작업을 할 수 있습니다. 이 외에도, 현재 사용 중인 작업대(Workbench)에 따라 추가적인 작업이 가능할 수 있습니다.

The objects inside a FreeCAD document can be of different types. Each workbench can create its own types of objects, for example the Mesh Workbench creates mesh objects, the Part Workbench create Part objects, the Draft Workbench also creates Part objects, etc.

If there is at least one document open in FreeCAD, there is always one and only one active document. That's the document that appears in the current 3D view, the document you are currently working on.

응용프로그램 및 사용자 인터페이스

Like almost everything else in FreeCAD, the graphical user interface part (GUI) is separated from the base application part (App). This is also valid for documents. The documents are also made of two parts: the Application document, which contains our objects, and the View document, which contains the representation on screen of our objects.

Think of it as two spaces, where the objects are defined. Their constructive parameters (is it a cube? a cone? which size?) are stored in the Application document, while their graphical representation (is it drawn with black lines? with blue faces?) are stored in the View document. Why is that? Because FreeCAD can also be used without graphical interface, for example, inside other programs, and we must still be able to manipulate our objects, even if nothing is drawn on the screen.

Another thing that is contained inside the View document are 3D views. One document can have several views opened, so you can inspect your document from several points of view at the same time. Maybe you would want to see a top view and a front view of your work at the same time? Then, you will have two views of the same document, both stored in the View document. Creating new views or closing views can be done from the View menu or by right-clicking on a view tab.

스크립팅

문서는 파이썬 인터프리터로 쉽게 만들고 접근하고 변경할 수 있습니다. 예를 들면:

FreeCAD.ActiveDocument

현재(활성) 문서 반환

FreeCAD.ActiveDocument.Blob

Would access an object called "Blob" inside your document

FreeCADGui.ActiveDocument

현 문서에 연관된 뷰 문서 반환

FreeCADGui.ActiveDocument.Blob

Would access the graphical representation (view) part of our Blob object

FreeCADGui.ActiveDocument.ActiveView

현재 뷰 반환